import {
	myRequest
} from "../utils/request.js"
export function myuser(data) {
	return myRequest({
		url: "shop/user/info",
		method: "post",
		data: data || {}
	})
}
export function edituser(data) {
	return myRequest({
		url: "shop/user/edit",
		method: "post",
		data: data || {}
	})
}
export function sendSmsCode(data) {
	return myRequest({
		url: "shop/common/sendSmsCode",
		method: "post",
		data: data || {}
	})
}
export function area(data) {
	return myRequest({
		url: "shop/common/area",
		method: "post",
		data: data || {}
	})
}
export function changeBind(data) {
	return myRequest({
		url: "shop/user/changeBind",
		method: "post",
		data: data || {}
	})
}
export function authentication(data) {
	return myRequest({
		url: "shop/user/authentication",
		method: "post",
		data: data || {}
	})
}
export function getAuthentication(data) {
	return myRequest({
		url: "shop/user/getAuthentication",
		method: "post",
		data: data || {}
	})
}
export function addaddress(data) {
	return myRequest({
		url: "shop/userAddress/add",
		method: "post",
		data: data || {}
	})
}
export function addresslist(data) {
	return myRequest({
		url: "shop/userAddress/index",
		method: "post",
		data: data || {}
	})
}
export function editaddress(data) {
	return myRequest({
		url: "shop/userAddress/edit",
		method: "post",
		data: data || {}
	})
}
export function setDefault(data) {
	return myRequest({
		url: "shop/userAddress/setDefault",
		method: "post",
		data: data || {}
	})
}
export function addressdetail(data) {
	return myRequest({
		url: "shop/userAddress/detail",
		method: "post",
		data: data || {}
	})
}
export function deleteaddress(data) {
	return myRequest({
		url: "shop/userAddress/delete",
		method: "post",
		data: data || {}
	})
}
export function identity(data) {
	return myRequest({
		url: "shop/UserCreationSystem/identity",
		method: "post",
		data: data || {}
	})
}
export function recommend(data) {
	return myRequest({
		url: "shop/user/recommend",
		method: "post",
		data: data || {}
	})
}
export function bindInvitationCode(data) {
	return myRequest({
		url: "shop/user/bindInvitationCode",
		method: "post",
		data: data || {}
	})
}
export function resetPassword(data) {
	return myRequest({
		url: "shop/user/resetPassword",
		method: "post",
		data: data || {}
	})
}
export function updatePayPassword(data) {
	return myRequest({
		url: "shop/user/updatePayPassword",
		method: "post",
		data: data || {}
	})
}
export function dashboard(data) {
	return myRequest({
		url: "shop/user/dashboard",
		method: "post",
		data: data || {}
	})
}
export function changePassword(data) {
	return myRequest({
		url: "shop/user/changePassword",
		method: "post",
		data: data || {}
	})
}
// 清理微信
export function cleanupWx(data) {
	return myRequest({
		url: "/shop/user/cleanupWx",
		method: "post",
		data: data || {}
	})
}
// 设置more券免密
export function setSecretFree(data) {
	return myRequest({
		url: "/shop/user/setSecretFree",
		method: "post",
		data: data || {}
	})
}
export function userSummary(data){
	return myRequest({
		url:"shop/userMoneyLog/summary",
		method: "post",
		data:data||{}
	})
}

export function cccc(data){
	return myRequest({
		url:"/screen/statistics/userData",
		method: "post",
		data:data||{}
	})
}